/*
 *  Copyright 2019-2023 Zheng Jie
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package me.zhengjie.modules.biz.domain;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.sql.Timestamp;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @description /
 * @author yiwei.he
 * @date 2024-03-11
 **/
@Data
@TableName("tz_universities")
public class Universities implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "自增id")
    private Long id;

    @ApiModelProperty(value = "院校名称")
    private String name;

    @ApiModelProperty(value = "院校代码")
    private String institutionCode;

    @ApiModelProperty(value = "院校区域")
    private String address;

    @ApiModelProperty(value = "院校logo")
    private String logo;

    @ApiModelProperty(value = "办学层次【0：本科 1：专科】")
    private Integer universityType;

    @ApiModelProperty(value = "办学性质【0：公办 1：民办】")
    private Integer universityQuality;

    @ApiModelProperty(value = "删除【0：未删除 1：删除】")
    private Integer isDelete;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "说明")
    private String remark;

    @ApiModelProperty(value = "院校类别【1：统招 2：统招+专升本（部分本科院校） 3：统招+单招（专科院校）】")
    private Integer category;

    @ApiModelProperty(value = "简介")
    private String content;

    @ApiModelProperty(value = "院校标签")
    private String labels;

    @ApiModelProperty(value = "学校概况")
    private String profile;

    @ApiModelProperty(value = "学校综合排名")
    private String ranking;

    @ApiModelProperty(value = "院校官网")
    private String website;

    @ApiModelProperty(value = "招生办官网")
    private String enrollWebsite;

    @ApiModelProperty(value = "招生办电话 ")
    private String mobile;

    @ApiModelProperty(value = "院系数")
    private String department;

    @ApiModelProperty(value = "博士点")
    private String doctor;

    @ApiModelProperty(value = "硕士点")
    private String master;

    @ApiModelProperty(value = "所属地区")
    private String belongarea;

    @TableField(exist = false)
    @ApiModelProperty(value = "标签数组【前端展示】")
    private List<String> labelList;

    public void copy(Universities source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
